﻿<dialogs:DialogWindow x:Class="HappyBa.Dialogs.SettingsDialog"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:dialogs="clr-namespace:Mnk.Library.WpfControls.Dialogs;assembly=Mnk.Library.WpfControls"
             xmlns:loc="clr-namespace:HappyBa.Code.Localization"
             xmlns:captioned="clr-namespace:Mnk.Library.WpfControls.Components.Captioned;assembly=Mnk.Library.WpfControls"
             Width="320" Height="240" 
             MinWidth="320" MinHeight="240" 
             Title="{loc:Tr Settings}" 
             WindowState="Normal"
             ShowInTaskbar="False"
                      >
    <DockPanel>
        <DockPanel DockPanel.Dock="Bottom" Margin="10">
            <Button Content="{loc:Tr Collect}" Click="CollectClick"  Padding="10 1" DockPanel.Dock="Right" IsDefault="True"/>
            <CheckBox Content="{loc:Tr CollectOnStartup}" VerticalAlignment="Center" IsChecked="{Binding CollectOnStartup}"/>
        </DockPanel>
        <TabControl>
            <TabItem Header="{loc:Tr Credentials}">
                <StackPanel>
                    <captioned:CaptionedTextBox Caption="{loc:Tr TargetProcessUrl}" Value="{Binding TargetProcessUrl}" Margin="2"/>
                    <captioned:CaptionedTextBox Caption="{loc:Tr LoginName}" Value="{Binding LoginName}" Margin="2"/>
                    <captioned:CaptionedPasswordBox Caption="{loc:Tr Password}" Value="{Binding Password}" Margin="2"/>
                </StackPanel>
            </TabItem>
        </TabControl>
    </DockPanel>
</dialogs:DialogWindow>
